<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1">
    <title>jQuery Mobile Web 应用程序</title>

    <!-- css -->
    <link href="css/jquery.mobile-1.4.0.min.css" rel="stylesheet" type="text/css"/>
    <link href="css/jquery.mobile.datepicker.css" rel="stylesheet" type="text/css"/>
    <link href="css/my.css" rel="stylesheet" type="text/css"/>
    <link href="css/myScroll.css" rel="stylesheet" type="text/css" media="all"/>
    <link href="css/jquery.toastmessage.css" rel="stylesheet" type="text/css">
    <link href="css/myDate.css" rel="stylesheet" type="text/css"/>

    <!-- js -->
    <script src="js/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script src="js/jquery.mobile-1.4.0.min.js" type="text/javascript"></script>
    <script src="js/jquery.mobile.datepicker.js" type="text/javascript"></script>
    <script src="js/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="js/jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
    <script src="js/jquery.toastmessage.js" type="text/javascript"></script>
    <script src="js/iscroll.js" type="text/javascript"></script>

    <script src="js/myDate.js" type="text/javascript"></script>
    <script src="js/myDateFlip.js" type="text/javascript"></script>
    <script src="js/myDatei18n.js" type="text/javascript"></script>

    <script src="js/constant.js" type="text/javascript"></script>
    <script src="js/yhEnter2.js" type="text/javascript"></script>

    <script type="text/javascript">
        /* document.addEventListener('touchmove', function (e) {
         e.preventDefault();
         }, false);*/

        initYhLevel();
        initYhType();
        //        initPcPerson();
        initYhzy();

        $(function () {
            /*var date = new Date();
             var year = date.getFullYear();
             var month = date.getMonth() + 1;
             var day = date.getDate();
             $("#pcTime").attr("value", year + "-" + month + "-" + day);*/

            /* var localStorage = window.localStorage;
             alert(localStorage.getItem("mainDeptId"));*/

            initPcPersonAndDept();
        });
    </script>
</head>
<body>
<!-- 隐患录入第一个页面 -->
<div data-role="page" id="yhEnter1">
    <div data-role="header" data-theme="b">
        <a href="irisData.html" data-role="button" class="ui-btn-left" data-icon="arrow-l" data-ajax="false"
           data-iconpos="notext"></a>

        <h1 style="font-size: large;">隐患录入</h1>

    </div>

    <div data-role="content">
        隐患依据<span style="color: red">*</span>
        <a class="ui-shadow ui-btn ui-corner-all ui-btn-inline ui-mini" href="#yhyj-filter" data-transition="flip">获取隐患依据</a>
        <!--  <select id="yhBasisSelect" onchange="selectBasis(this)"></select>-->
        <textarea id="yhBasisText" readonly="true"></textarea>
        <!--<input type="text" id="yhBasisText" readonly="true">-->
        <input type="hidden" id="yhBasisValue">

        <fieldset data-role="controlgroup" data-type="horizontal">
            <!--隐患级别<span style="color: red">*</span>-->
            <select id="yhLevelSelect" data-mini="true" data-native-menu="false"></select>
            <select id="yhTypeSelect" data-mini="true" data-native-menu="false"></select>
        </fieldset>

        <!--隐患类型<span style="color: red">*</span>-->


        <!-- 去掉危险源 -->
        <!--<label for="hazardText">危险源<span style="color: red">*</span></label>
        <a class="ui-shadow ui-btn ui-corner-all ui-btn-inline" href="#wxy-filter"
           data-transition="flip">获取危险源</a>
        <!--   <select id="hazardSelect"></select>-->
        <!--<input type="text" id="hazardText" readonly="true">
        <input type="hidden" id="hazardValue">-->

        <label for="yhContent">隐患描述<span style="color: red">*</span></label>
        <textarea id="yhContent"></textarea>

        责任单位
        <a class="ui-shadow ui-btn ui-corner-all ui-btn-inline ui-mini ui-btn-icon-notext ui-icon-search"
           onclick="zrdwFilter()">过滤责任单位</a>
        <input type="search" data-mini="true" placeholder="输入条件对责任单位进行过滤" id="zrdwFilter">


        <select id="zrdwSelect" onchange="selectZrdw(this)" data-mini="true" data-native-menu="false"></select>

        <!--<label for="zgfs">整改方式<span style="color: red">*</span></label>
        <select id="zgfs" onchange="selectZgfs(this)" data-mini="true">
            <option value="现场整改">现场整改</option>
            <option value="新增">限期整改</option>
        </select>-->
        <fieldset data-role="controlgroup" data-type="horizontal">
            <label for="xczg">现场整改</label>
            <input type="radio" name="zgfs" id="xczg" data-mini="true" value="现场整改" checked="checked"
                   onchange="selectXczg()">
            <label for="xqzg">限期整改</label>
            <input type="radio" name="zgfs" id="xqzg" data-mini="true" value="新增" onchange="selectXqzg()">
        </fieldset>

        <div style="display: none" id="xqzgDiv">
            责任人
            <a class="ui-shadow ui-btn ui-corner-all ui-btn-inline ui-mini ui-btn-icon-notext ui-icon-search"
               onclick="zrrFilter()">过滤责任人</a>
            <input type="search" data-mini="true" placeholder="输入条件对责任人进行过滤" id="zrrFilter">

            <select id="zrrSelect" data-mini="true" data-native-menu="false"></select>

            排查地点<span style="color: red">*</span>
            <a class="ui-shadow ui-btn ui-corner-all ui-btn-inline ui-mini ui-btn-icon-notext ui-icon-search"
               onclick="filterPlace()">过滤地点</a>
            <input type="search" placeholder="输入条件对排查地点进行过滤" id="placeFilter">

            <select id="placeSelect" data-mini="true" data-native-menu="false"></select>

            <label for="placeDetail">明细地点</label>
            <textarea id="placeDetail" type="text"></textarea>

            <!-- 去掉排查时间, 从入井信息获取 -->
            <!--<label for="pcTime">排查时间<span style="color: red">*</span></label>
            <input id="pcTime" type="text" data-role="datebox"
                   data-options='{"mode": "flipbox","useImmediate":true, "useButton": false, "useFocus": true, "useInlineBlind": true}'>-->

            <!-- 去掉排查班次，从入井信息获取 -->
            <!--<label for="pcbc">排查班次<span style="color: red">*</span></label>
            <select id="pcbc">
                <option value="早班">早班</option>
                <option value="中班">中班</option>
                <option value="夜班">夜班</option>
            </select>-->

            <!-- 隐藏排查人员 -->
            <!--<label for="pcPersonName">排查人员<span style="color: red">*</span></label>-->
            <!--<input id="pcPersonName" type="hidden" readonly="true">
            <input id="pcPersonNumber" type="hidden">-->

            <label for="pcType">排查类型<span style="color: red">*</span></label>
            <select id="pcType" onchange="selectPcType(this)" data-mini="true" data-native-menu="false">
                <option value="-6">采掘专项检查</option>
                <option value="-5">火工品专项检查</option>
                <option value="-4">机电运输专项检查</option>
                <option value="-3">地测防治水专项检查</option>
                <option value="-2">一通三防专项检查</option>
                <option value="-1">顶板管理专项检查</option>
                <option value="0">重大安全隐患</option>
                <option value="1">年度隐患</option>
                <option value="2">月度隐患</option>
                <option value="3" selected="selected">日常动态检查隐患</option>
                <option value="4">矿专项检查</option>
                <option value="5">地面检查</option>
                <option value="6">职工检查</option>
                <option value="7">公司专项检查</option>
                <option value="8">省局检查</option>
                <option value="9">市局检查</option>
                <option value="10">国投检查</option>
                <option value="11">经信委检查</option>
                <option value="12">公司预评估</option>
            </select>

            <div style="display: none" id="yhzyDiv">
                <label for="yhzySelect">隐患专业<span style="color: red">*</span></label>
                <select id="yhzySelect" data-mini="true" data-native-menu="false">
                </select>
            </div>


            <label for="zgqx">整改期限</label>
            <input type="text" data-role="datebox" id="zgqx"
                   data-options='{"mode": "flipbox","useImmediate":true, "useButton": false, "useFocus": true, "useInlineBlind": true}'>

            <label for="zgbcSelect">整改班次</label>
            <select id="zgbcSelect" data-mini="true" data-native-menu="false">
                <option value="早班">早班</option>
                <option value="中班">中班</option>
                <option value="夜班">夜班</option>
            </select>

            <!-- 罚款信息 -->
            <label for="fineTypeSelect">处罚类型<span style="color: red">*</span></label>
            <select id="fineTypeSelect" data-mini="true" data-native-menu="false" onchange="selectFineType(this)">
                <option value="0">不处罚</option>
                <option value="1">责任单位</option>
                <option value="2">责任人</option>
                <option value="3">责任单位和责任人</option>
            </select>

            <div style="display: none" id="dwfkDiv">
                <input id="dwfk" type="text" placeholder="单位罚款">
            </div>
            <div style="display: none" id="grfkDiv">
                <input id="grfk" type="text" placeholder="个人罚款">
            </div>
        </div>

        <a class="ui-shadow ui-btn ui-mini"
           onclick="submitInfo()">提交</a>
    </div>
</div>

<div data-role="page" id="yhyj-filter" data-close-btn="right">
    <div data-role="header" data-theme="b">
        <h1>过滤隐患依据</h1>
    </div>

    <div data-role="content">
        <label for="yhyjLevel">隐患级别</label>
        <select id="yhyjLevel" data-mini="true" data-native-menu="false"></select>

        <label for="yhyjType">隐患类型</label>
        <select id="yhyjType" data-mini="true" data-native-menu="false"></select>

        文字过滤
        <a class="ui-shadow ui-btn ui-corner-all ui-btn-inline ui-mini ui-btn-icon-notext ui-icon-search"
           onclick="filterYhyj()">过滤</a>
        <input type="search" placeholder="输入条件对隐患依据进行过滤" id="yhyjText">

        <label for="yhyjList">过滤结果</label>
        <select id="yhyjList" data-mini="true" data-native-menu="false"></select>

        <a class="ui-shadow ui-btn ui-mini"
           onclick="returnYhyj()">确定</a>
    </div>
</div>

<!-- 去掉危险源 -->
<!--<div data-role="page" id="wxy-filter" data-close-btn="right">
    <div data-role="header" data-theme="b">
        <h1>过滤危险源</h1>
    </div>

    <div data-role="content">
        <label for="wxyLevel">等级</label>
        <select id="wxyLevel">
            <option value="null">--全部--</option>
            <option value="低风险">低风险</option>
            <option value="一般风险">一般风险</option>
            <option value="中等风险">中等风险</option>
            <option value="重大风险">重大风险</option>
            <option value="特别重大风险">特别重大风险</option>
        </select>

        <label for="wxyText">文字描述</label>
        <input type="text" placeholder="可以输入条件对危险源进行过滤" id="wxyText">

        <a class="ui-shadow ui-btn ui-corner-all ui-btn-inline"
           onclick="filterWxy()">过滤</a>

        <label for="wxyList">过滤结果</label>
        <select id="wxyList"></select>

        <a class="ui-shadow ui-btn"
           onclick="returnWxy()">确定</a>
    </div>
</div>-->
</body>
</html>